﻿// SyntheticDataGenerator.ParameterSets.TransactionParameters
//
// (c) 2011 Arthur Pitman
//
// Part of Market-Basket Synthetic Data Generator
// A C# adaptation of the IBM Quest Market-Basket Synthetic Data Generator
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// (Version 2) as published by the Free Software Foundation.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public
// License (Version 2) along with this program; if not, write to 
// the Free Software Foundation, Inc., 
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
// or see <http://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace SyntheticDataGenerator.ParameterSets
{
    /// <summary>
    /// Transaction parameters
    /// </summary>
    public class TransactionParameters : CreatorParameters
    {
        /// <summary>
        /// Transaction count
        /// </summary>
        public int TransactionCount { get; set; }

        /// <summary>
        /// Initializes a new <see cref="TransactionParameters"/> instance with default values
        /// </summary>
        public TransactionParameters()
        {
            TransactionCount = 1000000;
            AverageTransactionLength = 10;
            ItemCount = 100000;          
        }

        /// <summary>
        /// Writes parameters to a <see cref="TextWriter"/>
        /// </summary>
        /// <param name="writer"></param>
        public override void Write(TextWriter writer)
        {
            writer.WriteLine("TransactionCount={0}", TransactionCount);
            base.Write(writer);
        }
    }
}
